<%@ include file="database_ini.jsp"%>


<%
	//response.sendRedirect("index.jsp");
	
	String Serailkey[] = request.getParameterValues("item");
	
	
	String type = request.getParameter("type");
	
	
	String stsql ="";
	Statement st;
	if (Serailkey != null) {
		for(int i =0; i<Serailkey.length ; i++){
			/*********debug*/
			System.out.println("Serailkey: " + Serailkey[i]);
			/**********/
			if(Serailkey[i]!=null){
				stsql = " delete from CCParameter where Serailkey = " + Integer.parseInt(Serailkey[i]) ;
				/*********debug*/
				System.out.println("stsql: " + stsql);
				/**********/
				
				st = conn.createStatement();
				st.executeUpdate(stsql);
			}
		}
	}
	conn.close();
	
	
	String status = "ok";
	String action = "del";
	
	
	response.sendRedirect("index.jsp?status=" + status + "&action=" + action);
%>